﻿@model Fengsoft.AIBlog.Web.Models.BlobInfoImageViewerModel
@{
    ViewBag.Title=SiteConfiguration.CombineTitle(Model.Title);
    Layout = "~/Views/Shared/_HeaderFooterLayout.cshtml";
    string previousUrl=string.Format("~/gallery/thumbnaillist/{0}",Model.Title);
    if (Request.UrlReferrer!=null)
    {
        previousUrl=Request.UrlReferrer.ToString();
    }
}
@section head{
}
@section scripts{
    <script type="text/javascript">
        // <![CDATA[
        (function ()
        {
            var removeButton = document.getElementById("btnRemove");
            removeButton.onclick = function ()
            {
                return window.confirm("Are you sure to remove this image?");
            };
        })();
        // ]]>
    </script>
}
<!--=== Breadcrumbs ===-->
<div class="breadcrumbs">
    <div class="container">
        <h1 class="pull-left">@Model.Title</h1>
        <ul class="pull-right breadcrumb">
            <li>
                <a href="~/home/index">@HomeResource.MainPageTitle</a>
            </li>
            <li>
                <a href="~/gallery/index">Galleries</a>
            </li>
            <li>
                <a href="@previousUrl">@Model.Title</a>
            </li>
            <li class="active">@Model.SeoFileName</li>
        </ul>
    </div>
</div><!--/breadcrumbs-->
<!--=== End Breadcrumbs ===-->
<!--=== Content Part ===-->
<div class="container content">
    <div class="gallery-page">
        <div class="row margin-bottom-20">
            <div class="col-md-12">
                @Html.Partial("_juicyadspartial","Leaderboard")
                <div class="row margin-bottom-20">
                    <img alt="@Model.Title" src="@Url.Content(Model.ImageUrl)" class="img-responsive" />
                </div>
                @if (SessionHelper.IsAdmin)
                {
                    <div class="row margin-bottom-20">
                        <form action="~/admin/removeblob" class="reg-page" method="post" role="form">
                            <input type="hidden" id="hidID" name="id" value="@Model.SeoFileName" />
                            <button id="btnRemove" class="btn-u pull-right" type="submit">Remove</button>
                        </form>
                    </div>
                }
                @Html.Partial("_plugrushpartial","Leaderboard")
            </div>
        </div>
    </div>
</div>
<!--=== End Content Part ===-->